import Vue from 'vue'
import Vuex from 'vuex'
import {getCookie} from "@/common/common";

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    'username':'',
    'addressindex':1
  },
  mutations: {
    getcookies(state){
      state.username=getCookie('username')
    },
    recifty_address(state,index){
      state.addressindex=Math.abs(index-4)
    }
  },
  actions: {
  },
  modules: {

  }
})
